﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Adm.Master" AutoEventWireup="true" CodeBehind="FormEsf.aspx.cs" Inherits="PROAD.admin.Forms.FormEsf" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="IncludeHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="IncludeTitulo" runat="server">
<h1>Formulário ES - Equipe de Saúde</h1>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="IncludeLink" runat="server">
<h1><a href="/admin/Consulta/ConsultaListaEsf.aspx">Lista ES - Nova</a></h1>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="IncludeConteudo" runat="server">
<h2>Preencha os dados abaixo</h2>
    

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    
    <asp:HiddenField ID="hdfCodEs" runat="server" />

    <table width="100%">
        <tr>
            <td colspan="3">Nome da Equipe de Saúde *</td>
        </tr>
        <tr>
            <td colspan="3"><asp:TextBox ID="txtEs" runat="server" Width="717px"></asp:TextBox> </td>
        </tr>
        <tr>
            <td>
                Área *</td>
            <td>
                Status *</td>
            
            <td>
                Nível de Atenção do SUS *</td>
        </tr>
          <tr>
            <td>
                <asp:TextBox ID="txtArea" runat="server" Width="351px"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlStatus" runat="server" Width="148px">
                    <asp:ListItem Value="">Status</asp:ListItem>
                    <asp:ListItem Value="1">Ativo</asp:ListItem>
                    <asp:ListItem Value="0">Inativo</asp:ListItem>
                </asp:DropDownList>
            </td>
                
            <td>
                <asp:DropDownList ID="ddlSus" runat="server" Width="148px" DataValueField="CO_ATENCAO_SUS" DataTextField="NO_ATENCAO_SUS">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td>UF *</td>
            <td>US *</td>
        </tr>
        <tr>
            <td width="150px"> 
               <asp:DropDownList ID="ddlUf" runat="server" Width="130px" DataValueField="CO_UF" AutoPostBack="true" 
                    DataTextField="NO_SIGLA" onselectedindexchanged="ddlUf_SelectedIndexChanged">
               </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="ddlUS" runat="server" Width="115px" DataValueField="CO_US" DataTextField="NO_US">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            <div style=" margin-left:580px">
                       <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />&nbsp;&nbsp;
                       <asp:Button ID="btnEditar" runat="server" Text="Salvar" 
                           onclick="btnEditar_Click" />
                       <asp:Button ID="btnSalvar" runat="server" Text="Salvar" 
                           onclick="btnSalvar_Click" />
                       </div> </td>
        </tr>
    </table>

    <!-- Área de Validação abaixo -->

    <div style="display:none;">
    <asp:HyperLink ID="linkMsn" runat="server">HyperLink</asp:HyperLink>
    </div>

    <asp:ModalPopupExtender ID="ModalPopupMsn" TargetControlID="linkMsn" runat="server"
        PopupControlID="PainelMsn" CancelControlID="btnCancelarMsn"
        BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>

    <asp:Panel ID="PainelMsn" runat="server" Style="display:none" Width="350px" CssClass="modalPopup">
        <asp:Panel ID="PainelCabecalho" runat="server" Style="border-bottom:solid 1px Gray;height:25px;">
            <div>
                <h1 style="line-height:25px;text-align:center;margin:0px 0px 0px 0px;vertical-align:bottom;padding:0px 0px 0px 0px;font-size:14px;font-family:Verdana;background-color:#FFFF95;">
                    <asp:Label ID="txtTituloMsn" runat="server"></asp:Label>
                    
                </h1>
            </div>
        </asp:Panel>
        <div>
            <br />
            <h2 style="margin:0px 0px 0px 0px;font-family:Verdana;font-size:11px;font-weight:normal;line-height:25px;width:100%;text-align:center;">
                <asp:Label ID="txtTextoMsn" runat="server"></asp:Label>
            </h2>
            <br />
            <table width="100%">
                <tr>
                    <td align="center">
                        <asp:Button ID="btnCancelarMsn" runat="server" Text="OK" />
                    </td>
                </tr>
            </table>            
        </div>
    </asp:Panel>

    <!-- Final Área de Validação -->

    </ContentTemplate>
    </asp:UpdatePanel>


</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="IncludeRodape" runat="server">
</asp:Content>
